package com.linchuan.concurrency;

public class LogService2 {
  /* 暂时取消掉
  private final ExecutorService exec = Executors.newSingleThreadExecutor();

  public void start() {}

  public void stop() {
    try {
      exec.shutdown();
      exec.awaitTermination(TIMEOUT, UNIT);
    } finally{
      writer.close;
    }
  }

  public void log(String msg) {

    try {
      exec.execute(new WriteTask(msg));
    } catch (RejectedExecutionException e) {
      // ignored
    }
  }
   */
}
